var page = {};

// -------- 模块引入区 --------

// -------- 事件管理区 --------
commonUtil.bindEventMap({
    //'[role-action="提交反馈"]': _submit
});

// -------- 临时变量区 --------
var _gid;

// -------- 函数方法区 --------
page.init = function(gid) {
    _gid = gid;

    var html = `
        <form id="yjForm" ></form>

		<div class="weui-cells__title" gs-fz-title="回复内容" style="padding-left:16px;margin-top:24px;margin-bottom:8px;padding-left:16px;">回复内容</div>
    `;
    zeroYddModal.show({
        title: '查看反馈意见',
        content: html
    });

    var model = [{
        display: '分类',
        name: 'yjfl.FKFLGID',
        ztype: 'picker',
        dic: 'bjsx.yjfkfl',
        required: true,
        groupName: '反馈意见'
    }, {
        display: '反馈内容',
        name: 'yjfl.NR',
        required: true,
        ztype: 'textarea',
        groupName: '反馈意见'
    }, {
        display: '是否匿名',
        name: 'yjfl.SFNM',
        ztype: 'switcher',
        dic: 'xbzd.sfbz',
        required: true,
        groupName: '反馈意见'
    }, {
        display: '手机',
        name: 'yjfl.SJ',
        groupName: '反馈意见'
    }, {
        display: '邮箱',
        name: 'yjfl.YX',
        groupName: '反馈意见'
    }, {
        display: '上传图片',
        name: 'yjfl.FJBH',
        ztype: 'file-pic',
        groupName: '反馈意见'
    }, {
        display: '反馈事件',
        name: 'yjfl.CJSJ',
        groupName: '反馈意见'
    }];

    commonUtil.buildYddFormPage({
        model: model,
        cols: 1,
        formId: 'yjForm',
        callback: function() {
            commonUtil.setFormReadonly('yjForm');
            commonUtil.setFormValue(SYS_CONTROLLER_PATH + '/query', _gid, 'yjForm', 'yjfl');
        }
    });
};

module.exports = page;